package com.awaken.content.models.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("verification_code")
public class VerificationCode {
    
    @TableId(type = IdType.AUTO)
    private Long id;
    
    private String email;
    
    private String code;
    
    private Integer type; // 1-注册，2-找回密码
    
    private LocalDateTime expireTime;
    
    private Integer used; // 0-未使用，1-已使用
    
    private LocalDateTime createTime;
} 